package com.ouc.mapper;

import com.ouc.entity.Department;
import com.ouc.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Name: EmployeeMapper
 * @Description:
 * @Author: Mr.Tong
 */
@Mapper
@Repository
public interface EmployeeMapper {

    //得到所有的部门信息
    public List<Employee> getAllEmployee();
    //根据id获取部门信息
    public Employee getEmployeeById(Integer id);
    public Boolean insertEmployee(Employee employee);

    public Boolean deleteEmployeeById(Integer id);

    public Boolean updateEmployee(Employee employee);



}
